const router = require('koa-router')()
const User = require('../controller/users')

router.prefix('/users')

router.get('/getUsers', User.getUsers)

router.post('/addUser', User.addUser)

router.post('/editUser',User.editUser)

router.post('/deleteUser',User.deleteUser)

router.get('/getUsedUsers',User.getUsedUsers)

router.post('/login',User.userLogin)

router.post('/addPrice',User.addPrice)

router.post('/reducePrice',User.reducePrice)

router.post('/getMoney',User.getMoney)

router.post('/getUser',User.getUser)

module.exports = router
